
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Git分支命名及提交规范 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="KafkaFix.html" />
    
    
    <link rel="prev" href="../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../ABOUTME.md">
            
                <span>
            
                    
                    关于我
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../">
            
                <a href="../">
            
                    
                    团队
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../">
            
                <a href="../">
            
                    
                    文档建设
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../">
            
                <a href="../">
            
                    
                    新人培训
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../">
            
                <a href="../">
            
                    
                    招聘面试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../">
            
                <a href="../">
            
                    
                    团队管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../">
            
                <a href="../">
            
                    
                    技术
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="GitFormat.html">
            
                <a href="GitFormat.html">
            
                    
                    Git分支命名及提交规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="KafkaFix.html">
            
                <a href="KafkaFix.html">
            
                    
                    Kafka集群迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../">
            
                <a href="../">
            
                    
                    Redis集群迁移
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../learn/README.md">
            
                <span>
            
                    
                    学习
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../learn/NonviolentCommunication.html">
            
                <a href="../learn/NonviolentCommunication.html">
            
                    
                    非暴力沟通
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Git分支命名及提交规范</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h5 id="git-&#x5206;&#x652F;&#x8BBE;&#x8BA1;&#x89C4;&#x8303;">Git &#x5206;&#x652F;&#x8BBE;&#x8BA1;&#x89C4;&#x8303;</h5>
<h5 id="&#x73AF;&#x5883;&#x8BF4;&#x660E;">&#x73AF;&#x5883;&#x8BF4;&#x660E;</h5>
<pre><code>   DEV &#x73AF;&#x5883;&#xFF1A;&#x7528;&#x4E8E;&#x5F00;&#x53D1;&#x8005;&#x8C03;&#x8BD5;&#x4F7F;&#x7528;&#x3002;
   FAT &#x73AF;&#x5883;&#xFF1A;&#x529F;&#x80FD;&#x9A8C;&#x6536;&#x6D4B;&#x8BD5;&#x73AF;&#x5883;&#xFF0C;&#x7528;&#x4E8E;&#x6D4B;&#x8BD5;&#x73AF;&#x5883;&#x4E0B;&#x7684;&#x8F6F;&#x4EF6;&#x6D4B;&#x8BD5;&#x8005;&#x6D4B;&#x8BD5;&#x4F7F;&#x7528;&#x3002;
   UAT &#x73AF;&#x5883;&#xFF1A;&#x7528;&#x6237;&#x9A8C;&#x6536;&#x6D4B;&#x8BD5;&#x73AF;&#x5883;&#xFF0C;&#x7528;&#x4E8E;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x4E0B;&#x7684;&#x8F6F;&#x4EF6;&#x6D4B;&#x8BD5;&#x8005;&#x6D4B;&#x8BD5;&#x4F7F;&#x7528;&#x3002;
   PRO &#x73AF;&#x5883;&#xFF1A;&#x5C31;&#x662F;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x3002;

   &#x6BD4;&#x5982;&#xFF0C;&#x9879;&#x76EE;&#x57DF;&#x540D;&#x4E3A;&#xFF1A;http://www.abc.com&#xFF0C;&#x90A3;&#x4E48;&#x76F8;&#x5173;&#x73AF;&#x5883;&#x7684;&#x57DF;&#x540D;&#x53EF;&#x8FD9;&#x6837;&#x914D;&#x7F6E;&#xFF1A;

   DEV &#x73AF;&#x5883;&#xFF1A;&#x672C;&#x5730;&#x914D;&#x7F6E;&#x865A;&#x62DF;&#x57DF;&#x540D;&#x5373;&#x53EF;
   FAT &#x73AF;&#x5883;&#xFF1A;http://fat.abc.com
   UAT &#x73AF;&#x5883;&#xFF1A;http://uat.abc.com
   PRO &#x73AF;&#x5883;&#xFF1A;http://www.abc.com
</code></pre><h5 id="&#x5206;&#x652F;">&#x5206;&#x652F;</h5>
<table>
<thead>
<tr>
<th>&#x5206;&#x652F;&#x524D;&#x7F00;</th>
<th>&#x540D;&#x79F0;</th>
<th>&#x73AF;&#x5883;</th>
<th>&#x53EF;&#x8BBF;&#x95EE;</th>
</tr>
</thead>
<tbody>
<tr>
<td>master</td>
<td>&#x4E3B;&#x5206;&#x652F;</td>
<td>PRO</td>
<td>Y</td>
</tr>
<tr>
<td>release</td>
<td>&#x9884;&#x4E0A;&#x7EBF;</td>
<td>UAT</td>
<td>Y</td>
</tr>
<tr>
<td>hotfix</td>
<td>&#x7D27;&#x6025;&#x4FEE;&#x590D;</td>
<td>DEV</td>
<td>N</td>
</tr>
<tr>
<td>develop</td>
<td>&#x6D4B;&#x8BD5;</td>
<td>FAT</td>
<td>Y</td>
</tr>
<tr>
<td>feature</td>
<td>&#x9700;&#x6C42;&#x5F00;&#x53D1;</td>
<td>DEV</td>
<td>N</td>
</tr>
</tbody>
</table>
<pre><code>master &#x4E3A;&#x4E3B;&#x5206;&#x652F;&#xFF0C;&#x7528;&#x4E8E;&#x90E8;&#x7F72;&#x5230;&#x6B63;&#x5F0F;&#x73AF;&#x5883;&#xFF08;PRO&#xFF09;&#xFF0C;&#x4E00;&#x822C;&#x7531; release &#x6216; hotfix &#x5206;&#x652F;&#x5408;&#x5E76;&#xFF0C;&#x4EFB;&#x4F55;&#x60C5;&#x51B5;&#x4E0B;&#x4E0D;&#x5141;&#x8BB8;&#x76F4;&#x63A5;&#x5728; master &#x5206;&#x652F;&#x4E0A;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x3002;

release &#x4E3A;&#x9884;&#x4E0A;&#x7EBF;&#x5206;&#x652F;&#xFF0C;&#x7528;&#x4E8E;&#x90E8;&#x7F72;&#x5230;&#x9884;&#x4E0A;&#x7EBF;&#x73AF;&#x5883;&#xFF08;UAT&#xFF09;&#xFF0C;&#x59CB;&#x7EC8;&#x4FDD;&#x6301;&#x4E0E; master &#x5206;&#x652F;&#x4E00;&#x81F4;&#xFF0C;&#x4E00;&#x822C;&#x7531; develop &#x6216; hotfix &#x5206;&#x652F;&#x5408;&#x5E76;&#xFF0C;&#x4E0D;&#x5EFA;&#x8BAE;&#x76F4;&#x63A5;&#x5728; release &#x5206;&#x652F;&#x4E0A;&#x76F4;&#x63A5;&#x4FEE;&#x6539;&#x4EE3;&#x7801;&#x3002;
&#x5982;&#x679C;&#x5728; release &#x5206;&#x652F;&#x6D4B;&#x8BD5;&#x51FA;&#x95EE;&#x9898;&#xFF0C;&#x9700;&#x8981;&#x56DE;&#x5F52;&#x9A8C;&#x8BC1; develop &#x5206;&#x652F;&#x770B;&#x5426;&#x5B58;&#x5728;&#x6B64;&#x95EE;&#x9898;&#x3002;

hotfix &#x4E3A;&#x7D27;&#x6025;&#x4FEE;&#x590D;&#x5206;&#x652F;&#xFF0C;&#x547D;&#x540D;&#x89C4;&#x5219;&#x4E3A; hotfix- &#x5F00;&#x5934;&#x3002;
&#x5F53;&#x7EBF;&#x4E0A;&#x51FA;&#x73B0;&#x7D27;&#x6025;&#x95EE;&#x9898;&#x9700;&#x8981;&#x9A6C;&#x4E0A;&#x4FEE;&#x590D;&#x65F6;&#xFF0C;&#x9700;&#x8981;&#x57FA;&#x4E8E; release &#x6216; master &#x5206;&#x652F;&#x521B;&#x5EFA; hotfix &#x5206;&#x652F;&#xFF0C;&#x4FEE;&#x590D;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x518D;&#x5408;&#x5E76;&#x5230; release &#x6216; develop &#x5206;&#x652F;&#xFF0C;&#x4E00;&#x65E6;&#x4FEE;&#x590D;&#x4E0A;&#x7EBF;&#xFF0C;&#x4FBF;&#x5C06;&#x5176;&#x5220;&#x9664;&#x3002;

develop &#x4E3A;&#x6D4B;&#x8BD5;&#x5206;&#x652F;&#xFF0C;&#x7528;&#x4E8E;&#x90E8;&#x7F72;&#x5230;&#x6D4B;&#x8BD5;&#x73AF;&#x5883;&#xFF08;FAT&#xFF09;&#xFF0C;&#x59CB;&#x7EC8;&#x4FDD;&#x6301;&#x6700;&#x65B0;&#x5B8C;&#x6210;&#x4EE5;&#x53CA; bug &#x4FEE;&#x590D;&#x540E;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x53EF;&#x6839;&#x636E;&#x9700;&#x6C42;&#x5927;&#x5C0F;&#x7A0B;&#x5EA6;&#x786E;&#x5B9A;&#x662F;&#x7531; feature &#x5206;&#x652F;&#x5408;&#x5E76;&#xFF0C;&#x8FD8;&#x662F;&#x76F4;&#x63A5;&#x5728;&#x4E0A;&#x9762;&#x5F00;&#x53D1;&#x3002;&#x4E00;&#x5B9A;&#x662F;&#x6EE1;&#x8DB3;&#x6D4B;&#x8BD5;&#x7684;&#x4EE3;&#x7801;&#x624D;&#x80FD;&#x5F80;&#x4E0A;&#x9762;&#x5408;&#x5E76;&#x6216;&#x63D0;&#x4EA4;&#x3002;

feature &#x4E3A;&#x9700;&#x6C42;&#x5F00;&#x53D1;&#x5206;&#x652F;&#xFF0C;&#x547D;&#x540D;&#x89C4;&#x5219;&#x4E3A; feature- &#x5F00;&#x5934;&#xFF0C;&#x4E00;&#x65E6;&#x8BE5;&#x9700;&#x6C42;&#x4E0A;&#x7EBF;&#xFF0C;&#x4FBF;&#x5C06;&#x5176;&#x5220;&#x9664;&#x3002;
</code></pre><h5 id="commit-&#x65E5;&#x5FD7;&#x89C4;&#x8303;">Commit &#x65E5;&#x5FD7;&#x89C4;&#x8303;</h5>
<pre><code>&#x63D0;&#x4EA4;&#x4FE1;&#x606F;&#x4E00;&#x5B9A;&#x8981;&#x8BA4;&#x771F;&#x586B;&#x5199;&#xFF01;
</code></pre><p><strong><em>&#x5EFA;&#x8BAE;&#x53C2;&#x8003;&#x89C4;&#x8303;&#xFF1A;<code>&lt;type&gt;(scope)&#xFF1A;&lt;subject&gt;</code></em></strong></p>
<pre><code>&#x6BD4;&#x5982;&#xFF1A;fix(&#x9996;&#x9875;&#x6A21;&#x5757;)&#xFF1A;&#x4FEE;&#x590D;&#x5F39;&#x7A97; JS Bug&#x3002;

type &#x8868;&#x793A; &#x52A8;&#x4F5C;&#x7C7B;&#x578B;&#xFF0C;&#x53EF;&#x5206;&#x4E3A;&#xFF1A;
fix&#xFF1A;&#x4FEE;&#x590D; xxx Bug
feat&#xFF1A;&#x65B0;&#x589E; xxx &#x529F;&#x80FD;
test&#xFF1A;&#x8C03;&#x8BD5; xxx &#x529F;&#x80FD;
style&#xFF1A;&#x53D8;&#x66F4; xxx &#x4EE3;&#x7801;&#x683C;&#x5F0F;&#x6216;&#x6CE8;&#x91CA;
docs&#xFF1A;&#x53D8;&#x66F4; xxx &#x6587;&#x6863;
refactor&#xFF1A;&#x91CD;&#x6784; xxx &#x529F;&#x80FD;&#x6216;&#x65B9;&#x6CD5;
scope &#x8868;&#x793A; &#x5F71;&#x54CD;&#x8303;&#x56F4;&#xFF0C;&#x53EF;&#x5206;&#x4E3A;&#xFF1A;&#x6A21;&#x5757;&#x3001;&#x7C7B;&#x5E93;&#x3001;&#x65B9;&#x6CD5;&#x7B49;&#x3002;

subject &#x8868;&#x793A; &#x7B80;&#x77ED;&#x63CF;&#x8FF0;&#xFF0C;&#x6700;&#x597D;&#x4E0D;&#x8981;&#x8D85;&#x8FC7; 60 &#x4E2A;&#x5B57;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x76F8;&#x5173; Bug &#x7684; Jira &#x53F7;&#xFF0C;&#x5EFA;&#x8BAE;&#x5728;&#x63CF;&#x8FF0;&#x4E2D;&#x52A0;&#x4E0A;&#x3002;
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../" class="navigation navigation-prev " aria-label="Previous page: 技术">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="KafkaFix.html" class="navigation navigation-next " aria-label="Next page: Kafka集群迁移">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Git分支命名及提交规范","level":"1.3.1","depth":2,"next":{"title":"Kafka集群迁移","level":"1.3.2","depth":2,"path":"tech/KafkaFix.md","ref":"tech/KafkaFix.md","articles":[]},"previous":{"title":"技术","level":"1.3","depth":1,"path":"README.md","ref":"README.md","articles":[{"title":"Git分支命名及提交规范","level":"1.3.1","depth":2,"path":"tech/GitFormat.md","ref":"tech/GitFormat.md","articles":[]},{"title":"Kafka集群迁移","level":"1.3.2","depth":2,"path":"tech/KafkaFix.md","ref":"tech/KafkaFix.md","articles":[]},{"title":"Redis集群迁移","level":"1.3.3","depth":2,"path":"README.md","ref":"README.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"tech/GitFormat.md","mtime":"2020-04-15T12:45:53.969Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-16T12:15:50.854Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

